<header>
  <div class="header-important">
    <div class="container layui-clear">
      <a href="/" class="logo">
        <img src="__HOME__/images/logo.png"/>
      </a>
      <img src="__HOME__/images/yxcz.png" class="logo-right-decation"/>
      <form action="/search"  class="search">
        <input type="text" placeholder="快来搜一搜吧！" value="{$keyword}" name="keyword"/>
        <input type="submit" class="layui-icon" value="&#xe615;"/>
      </form>
    </div>
  </div>
  <nav class="web-nav">
    <div class="container layui-clear">
      <ul class="nav-ul">
        <li {if $URI eq ''||$URI eq '/'}class="hover"{/if}>
          <a href="/" target="_self">网站首页</a>
        </li>
        {volist name="nav" id="vo"}
        <li {if $URI eq $vo['link']}class="hover"{/if}>
          <a href="{$vo.link}" target="{$vo.target}">{$vo.name}</a>
        </li>
        {/volist}
        <span class="border-bottom" hidden></span>
      </ul>
      <div class="header-user">
        {if condition="$Think.session.userid neq ''"}
        <img class="ico" src="{$Think.session.avatar}" onerror="this.src='__HOME__/images/a3o.png'"/>
        <div class="show-data">
          <div class="show logined">
            <i></i>
            <span class="logined_text">欢迎回来，{$Think.session.nickname}</span>
            <span class="logined_text share">
							<b class="hot"></b>
							您已投稿分享过<font>{$Think.session.posted_num}</font>次 ，
							共有<font>{$Think.session.praise_num}</font>位老铁为你点赞
						</span>
            <div class="logined_btn layui-clear">
              <a href="/user/index.html">个人中心</a>
              <a href="javaScript:exit();">退出</a>
            </div>
          </div>
        </div>
      </div>
      {else /}
      <img class="ico" src="__HOME__/images/a3o.png"/>
      <div class="show-data">
        <div class="show">
          <i></i>
          <span>登录后，享受更多优质服务哦</span>
          <button onclick="openLoginK();">登录</button>
        </div>
      </div>
      {/if}

    </div>
  </nav>
</header>